package ebj.common.staticdemo;

import com.google.common.base.Strings;

public class CommonContainer {
    private String resourcesName = "";
    
    public static CommonContainer getInstance() {
        return new CommonContainer();
    }
    
    static{
        System.out.println("init static code block.");
    }
    
    private static String waver(String arg0) {
        return (!Strings.isNullOrEmpty(arg0)) ? ("waver - " + arg0) : "";
    }
    
    
    private static String getResourcesName(String arg0) {
        return waver(arg0);
    }
    
    public String getResourceName(String resourceName) {
        resourcesName = getResourcesName(resourceName);
        return resourcesName;
    }
    
    public void printer(String string) {
        System.out.println("commonContainer-" + string + " = " + resourcesName);
    }
}
